// 给form设初始值
export const setFormValue = (form,values)=>{
  let valuesKeys = Object.keys(values)
  for(let key in form){
    if(valuesKeys.includes(key)){
      form[key] = values[key]
    }
  }
}
// 清理form
export const resetFormValue = (form,keys=[])=>{
  for(let key in form){
    if(keys.includes(key) || keys.length === 0){
      form[key] = undefined
    }
  }
}